import type { GetCategoryItem } from '@/types/category'
import { request } from '@/utils/request'

/**
 * 获取一级分类和二级分类
 */
export const GetCategoryAPI = () => {
  return request<GetCategoryItem[]>('/category/top', 'GET')
}
